import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {IndexComponent} from './index.component';


const routes: Routes = [
  {
    path: '',
    component: IndexComponent,
    children: [{
      path: '',
      loadChildren: ()=> import('../communication/communication.module').then(m=>m.CommunicationModule)
    }, {
      path: 'material-icon',
      loadChildren: () => import('../material-icon/material-icon.module').then(m => m.MaterialIconModule)
    }, {
      path: 'tiny',
      loadChildren: () => import('../tiny-demo/tiny-demo.module').then(m => m.TinyDemoModule)
    }, {
      path: 'electron',
      loadChildren: () => import('../electron-test/electron-test.module').then(m => m.ElectronTestModule)
    }, {
      path: 'codemirror',
      loadChildren: () => import('../codemirror/codemirror.module').then(m => m.CodemirrorModule)
    }, {
      path: 'ckeditor',
      loadChildren: () => import('../ck-editor/ck-editor.module').then(m => m.CkEditorModule)
    }]
  }];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class IndexRoutingModule {
}
